
//兼容IE10 插件放在最前面
//解决浏览器 不兼容安卓4.4
import 'babel-polyfill'

import Vue from 'vue'
import App from './App.vue'
import router from './router'

//引入 vuex
import store from './vuex/store' 

//axios
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios)
// Vue.use(VueAxios, axios)
// Vue.axios.get(api).then((response) => {
//   console.log(response.data)
// })
 
// this.axios.get(api).then((response) => {
//   console.log(response.data)
// })
 
// this.$http.get(api).then((response) => {
//   console.log(response.data)
// })

//点击 延迟300 --- 容易出现input 不起作用
import fastclick from 'fastclick';
fastclick.attach(document.body);

// //引入 动画 animate.css
import animate from 'animate.css'
Vue.use(animate)

//引入 公共样式
import './common/common.css'

//rem 自适应的 插件设置
import 'amfe-flexible';

//导入 vant ui库
import {
  Button,
  Popup,
  Swipe,
  SwipeItem,
  Toast,
  Lazyload,
  Row,
  Col
} from 'vant';
Vue.use(Button).use(Popup).use(Swipe).use(SwipeItem).use(Toast).use(Lazyload).use(Row).use(Col);


Vue.config.productionTip = false

// new Vue({
//   router,
//   store,
//   render: h => h(App)
// }).$mount('#app')
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})